JSGF.SpriteLine = JSGF.inherit(JSGF.SpriteBase);

JSGF.SpriteLine.prototype.additional = function(x, y) {
	this.type = "JSGF.SpriteLine";
	this.width = x;
	this.height = y;
	this.color = "#000000";
}

JSGF.SpriteLine.prototype.draw = function(context) {
	context.save();
	if (this.alpha != 1.0) {
		context.globalAlpha = this.alpha;
	}
	context.beginPath();
	context.strokeStyle  = this.color;
	context.moveTo(this.x, this.y);
	context.lineTo(this.x + this.width, this.y + this.height);
	context.stroke();
	context.closePath();
	context.restore();
}

////////////////////////////////////////
//Public
////////////////////////////////////////

JSGF.SpriteLine.prototype.setColor = function(color) {
	this.color = color;
}

JSGF.SpriteLine.prototype.getColor = function() {
	return this.color;
}

////////////////////////////////////////
// definition by user
////////////////////////////////////////

